package com.thinkgem.jeesite.common.persistence;

/**
 * @Author:Kongxiangsheng
 * @DesCription:
 * @Date:Created in 10:19 2018/8/10
 * @Modified By:
 */
public class BaseConstants {
    public static class DictSwitch{
        public static final String ON = "on";
        public static final String OFF = "off";
    }

    /**
     * 删除标记：0-未删除
     */
    public static final String DEL_FLAG_NORMAL = "0";
    /**
     * 删除标记：1-已删除
     */
    public static final String DEL_FLAG_DELETE = "1";

    /**
     * 是否标记：Y-是
     */
    public static final String YES_NO_FLAG_Y = "Y";

    /**
     * 是否标记：N-否
     */
    public static final String YES_NO_FLAG_N = "N";

    /**
     * 数据权限范围：1-所有数据
     */
    public static final String ROLE_DATA_SCOPE_ALL = "1";
    /**
     * 数据权限范围：2-所在机构及以下数据
     */
    public static final String ROLE_DATA_SCOPE_COMPANY_AND_CHILD = "2";
    /**
     * 数据权限范围：3-所在机构数据
     */
    public static final String ROLE_DATA_SCOPE_COMPANY = "3";
    /**
     * 数据权限范围：4-所在部门及以下数据
     */
    public static final String ROLE_DATA_SCOPE_OFFICE_AND_CHILD = "4";
    /**
     * 数据权限范围：5-所在部门数据
     */
    public static final String ROLE_DATA_SCOPE_OFFICE = "5";
    /**
     * 数据权限范围：8-仅本人数据
     */
    public static final String ROLE_DATA_SCOPE_SELF = "8";
    /**
     * 数据权限范围：9-按明细设置
     */
    public static final String ROLE_DATA_SCOPE_CUSTOM = "9";

    /**
     * 根菜单ID
     */
    public static final String ROOT_MENU_ID = "1";

    /**
     * 根机构ID
     */
    public static final String ROOT_OFFICE_ID = "0";

    /**
     * 根区域ID
     */
    public static final String ROOT_AREA_ID = "0";

    /**
     * 日志类型:1-接入日志
     */
    public static final String LOG_TYPE_ACCESS = "1";
    /**
     * 日志类型：2-错误日志
     */
    public static final String LOG_TYPE_EXCEPTION = "2";

    /**
     * 树形字典根节点
     */
    public static final String ROOT_TREE_ITEM_ID = "0";
}
